package edu.nwpu.dao;


import edu.nwpu.pojo.Manager;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface ManagerMapper {

    Manager getManagerById(@Param("id") Long id);

    Manager getManagerByName(@Param("name") String name);

    Manager getManagerByNameAndPassword(@Param("name") String name,@Param("pwd") String password);

    List<Manager> getAllManagers();

    int addManager(Manager manager);

    int updateManager(Manager manager);

    int deleteManagerById(@Param("id") Long id);

    int deleteManagerByName(@Param("name") String name);
}
